package com.home.mapper;

import com.home.entity.HrRole;
import org.springframework.stereotype.Repository;

import java.util.List;

@Repository
public interface HrRoleMapper {
    int deleteByPrimaryKey(Integer id);

    int insert(HrRole record);

    int insertSelective(HrRole record);

    HrRole selectByPrimaryKey(Integer id);

    int updateByPrimaryKeySelective(HrRole record);

    int updateByPrimaryKey(HrRole record);

    void deleteByHrId(Integer hrid);

    Integer addRoles(Integer hrid, Integer[] rids);

    List<HrRole> getAllHrWithRole(Integer id);

}